package homework.ooday02._cp.person;

public class Doctor extends Person{
    String title;

    Doctor(String name,int age,String address,String title){
        super(name,age,address);
        this.title = title;
    }

    void cut(){
        System.out.println(name+"在做手术");
    }
    void sayHi(){
        System.out.println("我叫"+name+","+age+"岁"+"住在"+address+"职称是:"+title);
    }

}
